<template>
	<view class="appraisalBg">
		<view class="model">
			<view class="kongs"></view>
			<view class="top contenr">微信授权</view>
			<view class="contes dis dis5 dis1 dis2">
				<text class="text1">本功能需要您先授权登录，</text>
				<text class="text1">是否确认登录？</text>
			</view>
			<view class="botns dis dis3">
				<button type="default" class="btns1 contenr" @click="quxiao">取消</button>
				<button type="default" class="share " hover-class='none' open-type="getUserInfo" @getuserinfo="bindGetUserInfo">确定
				</button>
			</view>
		</view>
	</view>
</template>

<script>
	let app =getApp().globalData;
	import pat from '@/common/js/pay.js';
	export default {
		data() {
			return {
				
			};
		},
		methods:{
			bindGetUserInfo(e){
				pat.register(e).then(res=>{
					console.log(res)
					if(res.isLogin){
						app.isLogin=true;
					}
					this.$emit('fnnc', res);
				})
			},
			quxiao(){
				let res={};
				res.isLogin=false
				this.$emit('fnnc', res);
			}
		}
	}
</script>

<style lang="scss" scoped>
	@import "../common/css/flex.css";
	@import "../common/css/index.scss";
	
	.appraisalBg {
		position: fixed;
		width: 100%;
		height: 100%;
		background-color: rgba(0, 0, 0, .5);
		bottom: 0;
	
		button {
			position: relative;
			display: block;
			margin-left: 0;
			margin-right: 0;
			padding-left: 0;
			padding-right: 0;
			box-sizing: border-box;
			font-size: 18px;
			text-align: center;
			text-decoration: none;
			line-height: 2.55555556;
			border-radius: 0;
			-webkit-tap-highlight-color: transparent;
			overflow: hidden;
			color: #000000;
			background-color: #fff;
			// width: 622upx;
			// min-height: 188upx;
			border: none;
		}
	
		.model {
			width: 640upx;
			height: 402upx;
			background: #FFFFFF;
			border-radius: 24upx;
			margin: auto;
			margin-top: 310upx;
	
			.kongs {
				width: 100%;
				height: 1px;
			}
	
			.top {
				width: 544upx;
				height: 50upx;
				font-size: 36upx;
				font-family: $typeface;
				font-weight: 500;
				color: #000000;
				line-height: 50px;
				margin: auto;
				margin-top: 57upx;
			}
	
			.contes {
				width: 544upx;
				height: 95upx;
				font-size: 32upx;
				font-family: $typeface1;
				font-weight: 400;
				color: #666666;
				line-height: 48upx;
				margin: auto;
				margin-top: 33upx;
			}
	
			.botns {
				width: 544upx;
				height: 80upx;
				margin: auto;
				margin-top: 39upx;
	
				.btns1 {
					width: 240upx;
					height: 80upx;
					background: #EDEDED;
					border-radius: 40upx;
					font-size: 30upx;
					font-family: $typeface;
					font-weight: 500;
					color: #333333;
				}
	
				.share {
					width: 240upx;
					height: 80upx;
					background: #FFD344;
					border-radius: 40upx;
					font-size: 30upx;
					font-family: $typeface;
					font-weight: 500;
					color: #333333;
				}
			}
		}
	}
</style>
